package com.stedu.mall.goodsservice;

import com.stedu.mall.common.bean.Category;
import com.stedu.mall.goodsservice.mapper.CategoryMapper;
import com.stedu.mall.goodsservice.mapper.GoodsMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest

public class MyTestGoods {
@Autowired
private GoodsMapper goodsMapper;
@Autowired
private CategoryMapper categoryMapper;
    @Test
    public void test1() {
        Category condition=new Category();
        condition.setParentId(0);
        condition.setStatus(0);
        //condition.setName("华为");

        System.out.println(condition);
        List<Category> categories = categoryMapper.selectByCondtion(condition);
        System.out.println(categories);

    }




}
